how to print a 2d array in java

159

print 2d array in java -

int[][] array = new int[rows][columns];
System.out.println(Arrays.deepToString(array));

Comments

Submit
0 Comments